package com.woniu.enums;



public enum ResponseStatusEnum {
    ERROR(500, "服务器异常"),
    SUCCESS(200, "成功"),
    USERNAME_OR_PASSWORD_WRONG(1, "用户名或者密码错误！"),
    USERNAME_EXIST(2, "用户已存在"),
    USER_NOT_LOGIN(10, "用户未登录,无法获取当前用户信息"),
    USERNAME_OR_PASSWORD_ERROR(12, "该商品已下架或删除"),
    PRODUCT_NO_EXIST(13, "商品不存在"),
    PRODUCT_STOCK_ERROR(14, "库存不足"),
    ORDER_NOT_EXIST(15, "订单不存在！"),
    ORDER_NOT_PAIED(16, "订单不是未付款状态！"),
    NO_PERMISSION(401,"您没有授权！");
    Integer code;
    String msg;

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    ResponseStatusEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }
}
